package com.example.cloud.controller.finance;

import com.example.cloud.controller.common.BaseController;
import com.example.cloud.model.dto.QueryModel;
import com.example.cloud.model.dto.Result;
import com.example.cloud.model.finance.WaitPayment;
import com.example.cloud.service.finance.WaitPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wangtao on 2018/7/31.
 */
@RestController
@RequestMapping("/wait/payment")
public class WaitPaymentController extends BaseController {

    @Autowired
    private WaitPaymentService waitPaymentService;

    @PostMapping("/search")
    public Result search(@RequestBody QueryModel model) {
        return this.singleQuery(model, WaitPayment.class);
    }
}
